package com.jonah.sqlsession;

import java.util.List;

/**
 * @Author: Jonah.Chen
 * @Date: 2020/8/5 22:33
 * @Description:
 */
public interface SqlSession {

    <T> List<T> selectList(String statementId, Object... params) throws Exception;

    <T> T selectOne(String statementId, Object... params) throws Exception;

    Integer deleteOne(String statementid, Object param) throws Exception;

    Integer insertOne(String statementid, Object param) throws Exception;

    Integer updateOne(String statementid, Object param) throws Exception;

    // 为DAO层生成代理实现类
    <T> T getMapper(Class<?> mapperClz);
}